package io_exercise;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class BRDemo2 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis2=new FileInputStream("pw2.txt");
        InputStreamReader isr2=new InputStreamReader(fis2, StandardCharsets.UTF_8);
        BufferedReader br2=new BufferedReader(isr2);
        String line2;
        while ((line2=br2.readLine())!=null){
            System.out.println(line2);
        }
        br2.close();
    }
}
